﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media;

namespace FlowSequencer.Model
{
    class Cell : INotifyPropertyChanged
    {
        private string data;
        public string Data
        {
            get { return data; }
            set
            {
                if (data == value) return;
                data = value;
                NotifyPropertyChanged("Data");
            }
        }

        private int index;
        public int Index
        {
            get { return index; }
            set
            {
                if (index == value) return;
                index = value;
                NotifyPropertyChanged("Index");
            }
        }

        private int width;
        public int Width
        {
            get { return width; }
            set
            {
                if (width == value) return;
                width = value;
                NotifyPropertyChanged("Width");
            }
        }

        private Brush color;
        public Brush Color
        {
            get { return color; }
            set
            {
                if (color == value) return;
                color = value;
                NotifyPropertyChanged("Color");
            }
        }
      

        private void NotifyPropertyChanged(string name)
        {
            if (PropertyChanged != null)
                PropertyChanged(this, new PropertyChangedEventArgs(name));
        }
        public event PropertyChangedEventHandler PropertyChanged;

    }
}
